﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CSImport.WordPress
{
    class BlogPost
    {
        public String title { get; set; }
        public String directLink { get; set; }
        public DateTime publicationDate { get; set; }
        public String creator { get; set; }
        public Category category { get; set; }
        public List<Tag> tags { get; set; }
        public String description { get; set; }
        public String content { get; set; }
        public String postId { get; set; }
        public DateTime postDate { get; set; }
        public DateTime postDateGMT { get; set; }
        public String commentStatus { get; set; }
        public String postName { get; set; }
        public String status { get; set; }
        public String parentId { get; set; }
        public String menuOrder { get; set; }
        public String postType { get; set; }
        public String postPassword { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is BlogPost)
            {
                BlogPost bp = (BlogPost)obj;
                return bp.postId == postId || bp.postId.Equals(postId);
            }
            else
            {
                return false;
            }
        }
    }
}
